﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml;

namespace LY.Manage.WebApp.App_Start
{
    public class SqlExec
    {

        public static string Address = "";
        public static void ReadConfig()
        {
            XmlDocument XmlConfig = new XmlDocument();

            try
            {
                XmlConfig.Load(System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "XMLFile1.xml");
            }
            catch (Exception ex)
            {
                
               // Logger.WriteLog("读取XMLFileConfig.xml失败" + ex);
            }
            foreach (XmlNode node in XmlConfig.ChildNodes)
            {
                if (node.Name.Equals("app"))
                {
                    foreach (XmlNode layerNode in node.ChildNodes)
                    {
                        if (layerNode.Name.Equals("Address"))
                        {
                            Address = layerNode.InnerText;
                        }


                    }
                }
            }

        }
      
      
    }
}